package com.lyn.p1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Blog {
	@Value("${blog.address}")
	private String address;
	
	@Value("${blog.author}")
	private String author;
	
	@Value("${blog.desc}")
	private String desc;
	
	@Value("${blog.randomStr}")
	private String randomStr;
	
	@Value("${blog.randomInt}")
	private int randomInt;
	
	@Value("${blog.randomLong}")
	private long randomLong;
	
	@Value("${blog.limit10}")
	private int limit10;
	
	@Value("${blog.limit1To20}")
	private int limit1To20;

	@Override
	public String toString() {
		return "Blog [address=" + address + ", author=" + author + ", desc=" + desc + ", randomStr=" + randomStr
				+ ", randomInt=" + randomInt + ", randomLong=" + randomLong + ", limit10=" + limit10 + ", limit1To20="
				+ limit1To20 + "]";
	}
	
}
